var errorInfo = {};
function autoHide(r) {
    var t = r.attr("tiptimer");
    if (!t) {
        t = "tiptimer" + (new Date).getTime();
        r.attr("tiptimer", t)
    }
    if (errorInfo[t]) {
        window.clearTimeout(errorInfo[t])
    }
    errorInfo[t] = window.setTimeout(function () {
        errorInfo[t] = null;
        r.html("")
    }, 2e3)
}
$.extend(validator.defaults, {
    errorClass: "cas_error", autoFocus: false, errorFunction: function (r, t) {
        var e = "cas_error", o = t.msg[t.type] || t.msg["default"];
        switch (t.type) {
            case"require":
                e = "cas_warn";
                break
        }
        showError($(t.msg_ct), o);
        if (t.autoFocus) r.focus();
        window.setTimeout(function () {
            $(t.msg_ct).html("")
        }, 2e3)
    }, successFunction: function (r, t) {
    }
});